package com.ruoyi.constant;

import com.google.common.collect.Lists;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;
import java.util.List;

@Getter
@AllArgsConstructor
public enum TenementType implements TypeOfCoupon
{
    MININGRIGHTS(1, "采矿权"),
    PROSPECTINGRIGHTS(2, "探矿权");
    private final Integer code;
    private final String msg;
    /**
     * 获取全部枚举
     */
    public static List<TenementType> getAllEnum() {
        List<TenementType> list = Lists.newArrayList();
        list.addAll(Arrays.asList(values()));
        return list;
    }
}
